//package org.example.concurrence;
//
//import cn.hutool.core.lang.Console;
//import cn.hutool.http.HttpRequest;
//
//import java.util.HashMap;
//import java.util.UUID;
//import java.util.concurrent.ExecutorService;
//import java.util.concurrent.Executors;
//
//public class RequestDemo {
//    final static String ip = "192.168.20.125:9090";
//    final static String token = "860E4A2DA0EA584EC7EBB753E765816D8C674BDBBB1967EDA97848B88A0C5411190E642DE995D4D0124BDDD42324C8F41DDB470D40B0B1806E310770D579C9141EE1292145553BD52FA9AE202E168C55310B8CC221E60D0D95AB43CA75BF9ED5090B9777B24FF80DD9A9DFEBD204FD85";
//    final static String url = "/ship-manager/materialName/add?token="+token;
//    final static String str = "一乙二十丁厂七卜人入八九几儿了力乃刀又三于干亏士工土才寸下大丈与万上小口巾山千乞川亿个勺久凡及夕丸么广亡门义之尸弓己已子卫也女飞刃习叉马乡丰王井开夫天无元专云扎艺木五支厅不太犬区历尤友匹车巨牙屯比互切瓦止少日中冈贝内水见午牛手毛气升长仁什片仆化仇币仍仅斤爪反介父从今凶分乏公仓月氏勿欠风丹匀乌凤勾文六方火为斗忆订计户认心尺引丑巴孔队办以允予劝双书幻玉刊示末未击打巧正扑扒功扔去甘世古节本术可丙左厉右石布龙平灭轧东卡北占业旧帅归且旦目叶甲申叮电号田由史只央兄叼叫另叨叹四生失禾丘付仗代仙们仪白仔他斥瓜乎丛令用甩印乐句匆册犯外处冬鸟务包饥主市立闪兰半汁汇头汉宁穴它讨写让礼训必议讯记永司尼民出辽奶奴加召皮边发孕圣对台矛纠母幼丝式刑动扛寺吉扣考托老执巩圾扩扫地扬场耳共芒亚芝朽朴机权过臣再协西压厌在有百存而页匠夸夺灰达列死成夹轨邪划迈毕至此贞师尘尖劣光当早吐吓虫曲团同吊吃因吸吗屿帆岁回岂刚则肉网年朱先丢舌竹迁乔伟传乒乓休伍伏优伐延件任伤价份华仰仿伙伪自血向似后行舟全会杀合兆企众爷伞创肌朵杂危旬旨负各名多争色壮冲冰庄庆亦刘齐交次衣产决充妄闭问闯羊并关米灯州汗污江池汤忙兴宇守宅字安讲军许论农讽设访寻那迅尽导异孙阵阳收阶阴防奸如妇好她妈戏羽观欢买红纤级约纪驰巡寿弄麦形进戒吞远违运扶抚坛技坏扰拒找批扯址走抄坝贡攻赤折抓扮抢孝均抛投坟抗坑坊抖护壳志扭块声把报却劫芽花芹芬苍芳严芦劳克苏杆杠杜材村杏极李杨求更束豆两丽医辰励否还歼来连步坚旱盯呈时吴助县里呆园旷围呀吨足邮男困吵串员听吩吹呜吧吼别岗帐财针钉告我乱利秃秀私每兵估体何但伸作伯伶佣低你住位伴身皂佛近彻役返余希坐谷妥含邻岔肝肚肠龟免狂犹角删条卵岛迎饭饮系言冻状亩况床库疗应冷这序辛弃冶忘闲间闷判灶灿弟汪沙汽沃泛沟没沈沉怀忧快完宋宏牢究穷灾良证启评补初社识诉诊词译君灵即层尿尾迟局改张忌际陆阿陈阻附妙妖妨努忍劲鸡驱纯纱纳纲驳纵纷纸纹纺驴纽奉玩环武青责现表规抹拢拔拣担坦押抽拐拖拍者顶拆拥抵拘势抱垃拉拦拌幸招坡披拨择抬其取苦若茂苹苗英范直茄茎茅林枝杯柜析板松枪构杰述枕丧或画卧事刺枣雨卖矿码厕奔奇奋态欧垄妻轰顷转斩轮软到非叔肯齿些虎虏肾贤尚旺具果味昆国昌畅明易昂典固忠咐呼鸣咏呢岸岩帖罗帜岭凯败贩购图钓制知垂牧物乖刮秆和季委佳侍供使例版侄侦侧凭侨佩货依的迫质欣征往爬彼径所舍金命";
//    public static void request(HashMap<String,Object> map){
//        String body = HttpRequest.post(ip + url)
//                .form(map)
//                .execute()
//                .body();
//        Console.log(body);
//    }
//    public static HashMap<String, Object> getMap(){
//        HashMap<String, Object> map = new HashMap<>();
//        map.put("specification",getRandom());
//        map.put("cnName",getRandom());
//        map.put("enName",getRandom());
//        map.put("sizeWeight",getRandom());
//        map.put("otherTechnologyData","asdqwe");
//        map.put("materialType","qweqw");
//        map.put("unit","aweqasdxzwa");
//        map.put("manufacturerCoding","qweq");
//        map.put("manufacturerName","aeqwedasda");
//        map.put("inPrice","32000");
//        map.put("inPriceUnit","160");
//        map.put("outPrice","345777");
//        map.put("outPriceUnit","160");
//        map.put("common","1");
//        map.put("remark","adawe");
//        map.put("type","2");
//        map.put("brand","asdqweq");
//        return map;
//    }
//    public static String getRandom(int min,int max){
//        char[] chars = str.toCharArray();
//        String s = "";
//        int count = chars.length;
//        for (int i = 0; i < 8; i++) {
//            int t = (int) (Math.random()*1000%count);
//            s += chars[t];
//        }
//        return s;
//    }
//    public static void main(String[] args) {
//        //启动默认最大线程个数，以cpu速度为准
//        ExecutorService threadPool = Executors.newCachedThreadPool();
//        try {
//            for (int i = 1;i<10000;i++) {
//                threadPool.execute(() -> {
//                    //System.out.println(Thread.currentThread().getName() + " ok");
//                    request(getMap());
//                });
//            }
//        } catch (Exception exception) {
//            exception.printStackTrace();
//        } finally {
//            //线程池用完 释放并且关闭线程池
//            threadPool.shutdown();
//        }
//
//
//
//    }
//}